package com.itheima.stock;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.itheima.stock.vo.resp.StockInfo;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Slf4j
@SpringBootApplication
@MapperScan(basePackages = {"com.itheima.stock.mapper"})
@ServletComponentScan
@EnableKnife4j
@EnableSwagger2
@EnableAspectJAutoProxy
@EnableConfigurationProperties(value = StockInfo.class)
@EnableScheduling
public class StockApp {

    public static void main(String[] args) {
        SpringApplication.run(StockApp.class,args);
        log.info("项目启动成功......");
    }
}